

curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom",  "lat" : "lat", "lon" : "lon"}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addSimplePointLayer



curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom", "format" : "WKT",  "nodePropertyName" : "wkt"}' POST http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addEditableLayer



curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom"}'  http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/getLayer



curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom", "geometry" : "LINESTRING (15.2 60.1, 15.3 60.1)"}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addGeometryWKTToLayer



curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom", "geometry" : "LINESTRING (16.2 60.1, 15.3 60.1)", "geometryNodeId" : 77}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/updateGeometryFromWKT



curl -X POST -H "Content-Type: application/json" -d '{"name" : "geom", "config" : {"provider" : "spatial", "geometry_type" : "point", "lat" : "lat", "lon" : "lon"}}' http://localhost:7474/db/data/index/node/



curl -X POST -H "Content-Type: application/json" -d '{"lat" : 60.1, "lon" : 15.2}' http://localhost:7474/db/data/node



curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom", "node" : "http://localhost:7575/db/data/node/54"}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/addNodeToLayer



curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom", "minx" : 15.0,"maxx" : 15.3, "miny" : 60.0, "maxy" : 61.0}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesInBBox



curl -X POST -H "Content-Type: application/json" -d '{"layer" : "geom", "pointX" : 15.0, "pointY" : 60.0, "distanceInKm" : 100}' http://localhost:7474/db/data/ext/SpatialPlugin/graphdb/findGeometriesWithinDistance



#Cypher start
curl -X POST -H "Content-Type: application/json" -d '{"query" : "start node = node:geom('bbox:[15.0,15.3,60.0,60.2]') return node"}' http://localhost:7474/db/data/cypher



curl -X POST -H "Content-Type: application/json" -d '{"query" : "start node = node:geom('withinDistance:[60.0,15.0, 100.0]') return node"}' http://localhost:7474/db/data/cypher